﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;

namespace Gui.Net
{
    public static class WinApi
    {
        enum DwComposiotionAction
        {
            DWM_EC_DISABLECOMPOSITION = 0,
            DWM_EC_ENABLECOMPOSITION = 1
        }

        /// <summary>
        /// Determines whether the Desktop Windows Manager is enabled
        /// </summary>
        [DllImport("dwmapi.dll", PreserveSig = false)]
        public static extern bool DwmIsCompositionEnabled();

        /// <summary>
        /// Determines whether the Desktop Windows Manager is enabled
        /// </summary>
        [DllImport("dwmapi.dll", PreserveSig = false)]
        public static extern uint DwmEnableComposition(uint uCompositionAction);
    }
}
